# -*- encoding:ascii -*-
from mako import runtime, filters, cache
UNDEFINED = runtime.UNDEFINED
__M_dict_builtin = dict
__M_locals_builtin = locals
_magic_number = 8
_modified_time = 1357475974.006
_enable_loop = True
_template_filename = 'resources/SingleThema.html'
_template_uri = 'resources/SingleThema.html'
_source_encoding = 'ascii'
_exports = []


def render_body(context,**pageargs):
    __M_caller = context.caller_stack._push_frame()
    try:
        __M_locals = __M_dict_builtin(pageargs=pageargs)
        thema = context.get('thema', UNDEFINED)
        __M_writer = context.writer()
        # SOURCE LINE 1
        __M_writer(u'\r\n\r\n\t<h2>Thema Informationen</h2>\r\n\t<form action="/Themen/save" method="post" accept-charset="utf-8">\r\n')
        # SOURCE LINE 5
        if thema == None or thema.Bezeichner == None:
            # SOURCE LINE 6
            __M_writer(u'\t\t\t\tBezeichner<input type="text" name="Bezeichner" value="" />\r\n')
            # SOURCE LINE 7
        else:
            # SOURCE LINE 8
            __M_writer(u'\t\t\t\tBezeichner<input readonly type="text" name="Bezeichner" value="')
            __M_writer(unicode(thema.Bezeichner))
            __M_writer(u'" />\r\n\r\n')
        # SOURCE LINE 11
        __M_writer(u'\t\t\r\n')
        # SOURCE LINE 12
        if thema == None or thema.Beschreibung == None:
            # SOURCE LINE 13
            __M_writer(u'\t\t\t\tBeschreibung<input type="text" name="Beschreibung" value="" />\r\n')
            # SOURCE LINE 14
        else:
            # SOURCE LINE 15
            __M_writer(u'\t\t\t\tBeschreibung<input type="text" name="Beschreibung" value="')
            __M_writer(unicode(thema.Beschreibung))
            __M_writer(u'" />\r\n')
        # SOURCE LINE 17
        __M_writer(u'   \r\n\t\t<button type="submit">Save</button>\r\n\r\n\t</form>\r\n\r\n')
        # SOURCE LINE 22
        if thema != None:
            # SOURCE LINE 23
            __M_writer(u'\t<h2>Abschnitt Liste </h2>\r\n\t<ul>\r\n')
            # SOURCE LINE 25
            for a in  thema.Abschnitte:
                # SOURCE LINE 26
                __M_writer(u'\t\t\t\t<li>\r\n\t\t\t\t\t<a href="/Abschnitt/open?LerneinheitNummer=')
                # SOURCE LINE 27
                __M_writer(unicode(a.LerneinheitNummer))
                __M_writer(u'&amp;AbschnittBezeichner=')
                __M_writer(unicode(a.AbschnittBezeichner))
                __M_writer(u'">')
                __M_writer(unicode(a.AbschnittBezeichner))
                __M_writer(u'</a>\r\n\t\t\t\t</li>\r\n')
            # SOURCE LINE 30
            __M_writer(u'\t</ul>\r\n')
        # SOURCE LINE 32
        __M_writer(u'\r\n')
        return ''
    finally:
        context.caller_stack._pop_frame()


